package cn.jsu.oj.dispatchServer.satellite.pojo.net;

import cn.jsu.oj.dispatchServer.satellite.annotation.PackType;

import java.io.Serializable;

/**
 * 连接信息
 *
 * @author shan
 * @date 2022/06/29
 */
@PackType(typeNo = 1)
public class ActiveNet extends AbsPackNet implements Serializable {
    
    private String activePassword;
    
    private Integer localPort;

    public ActiveNet() {
    }

    public ActiveNet(String activePassword) {
        this.activePassword = activePassword;
    }

    public ActiveNet(String activePassword, Integer localPort) {
        this.activePassword = activePassword;
        this.localPort = localPort;
    }

    public String getActivePassword() {
        return activePassword;
    }

    public void setActivePassword(String activePassword) {
        this.activePassword = activePassword;
    }

    public Integer getLocalPort() {
        return localPort;
    }

    public void setLocalPort(Integer localPort) {
        this.localPort = localPort;
    }

    @Override
    public String toString() {
        return "ActiveNet{" +
                "activePassword='" + activePassword + '\'' +
                ", localPort=" + localPort +
                '}';
    }
}
